﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:DemoApp">

    <!-- DataTemplate for Popup look and feel -->
    <DataTemplate DataType="{x:Type local:ComponentData}">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>

            <Label Grid.Row="0"
                   Content="Component Name"
                   Margin="5" />
            <TextBox Grid.Row="1"
                    HorizontalAlignment="Left"
                    Text="{Binding ComponentName}"
                    Width="150"
                    Margin="5"
                    x:Name="TextBox"
                    FocusManager.FocusedElement="{Binding ElementName=TextBox}" />
        </Grid>
    </DataTemplate>
</ResourceDictionary>